// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addEquipmentCategory POST /api/equipment/category/add */
export async function addEquipmentCategoryUsingPost(
  body: API.EquipmentCategoryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/equipment/category/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteEquipmentCategory POST /api/equipment/category/delete */
export async function deleteEquipmentCategoryUsingPost(
  body: API.EquipmentCategoryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/equipment/category/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** queryCategoryByPrimary POST /api/equipment/category/queryCategoryByPrimary */
export async function queryCategoryByPrimaryUsingPost(
  body: API.EquipmentCategoryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListEquipmentCategoryDTO_>(
    '/api/equipment/category/queryCategoryByPrimary',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  )
}

/** queryCategoryParent POST /api/equipment/category/queryCategoryParent */
export async function queryCategoryParentUsingPost(
  body: API.EquipmentInfoDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseEquipmentCategoryDTO_>(
    '/api/equipment/category/queryCategoryParent',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  )
}

/** queryDetail POST /api/equipment/category/queryDetail */
export async function queryDetailUsingPost(
  body: API.EquipmentCategoryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseEquipmentCategoryDTO_>('/api/equipment/category/queryDetail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** queryPrimaryCategory GET /api/equipment/category/queryPrimaryCategory */
export async function queryPrimaryCategoryUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListEquipmentCategoryDTO_>(
    '/api/equipment/category/queryPrimaryCategory',
    {
      method: 'GET',
      ...(options || {}),
    }
  )
}

/** updateEquipmentCategory POST /api/equipment/category/update */
export async function updateEquipmentCategoryUsingPost(
  body: API.EquipmentCategoryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/equipment/category/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
